using System;


namespace Cuyahoga.Core.Service.Membership
{
	/// <summary>
	/// Provides authentication functionality based on Cuyahoga's internal database.
	/// </summary>
	public class DefaultAuthenticationService : IAuthenticationService
	{
        //private IUserDao _userDao;

        ///// <summary>
        ///// Constructor.
        ///// </summary>
        ///// <param name="userDao"></param>
        //public DefaultAuthenticationService(IUserDao userDao)
        //{
        //    this._userDao = userDao;
        //}

        //#region IAuthenticationService Members

        //public User AuthenticateUser(string username, string password, string ipAddress)
        //{
        //    string hashedPassword = User.HashPassword(password);
        //    User user = this._userDao.GetUserByUsernameAndPassword(username, password);
        //    if (user != null)
        //    {
        //        user.LastIp = ipAddress;
        //        user.LastLogin = DateTime.Now;
        //        this._userDao.SaveOrUpdateUser(user);
        //    }
        //    return user;
        //}

        //#endregion
	}
}
